﻿using System.Collections;
using System.Text;
using SimpleJSON;
using ROSBridgeLib.geometry_msgs;
using ROSBridgeLib.nav_msgs;

using UnityEngine;
// Need geometry_msgs/PoseStamped[]

namespace ROSBridgeLib {
    namespace nav_msgs {
        public class MapMetaData : ROSBridgeMsg {
                
          
            public float resolution;
            public int width;
            public int height;
            PoseMsg _origin;



            public MapMetaData(JSONNode msg) {

              
                _origin=new PoseMsg(msg["origin"]);
            
                resolution=float.Parse(msg["resolution"]);
                width=msg["width"].AsInt;
                height=msg["height"].AsInt;

               
          
            }


            public PoseMsg GetOrigin()
            {
                return _origin;
            }


           


        }

    }

}

